import { _decorator, Component, director, Node, PhysicsSystem2D, sys } from 'cc';
import { GameData } from './Framework/Managers/DataManager';
import Banner from './Banner';
const { ccclass, property } = _decorator;

//所有游戏的总管理脚本
@ccclass('GameManager')
export class GameManager extends Component {

    //**是否显示所有的游戏 */
    static ShowAllGame: boolean = false;

    //**当前游戏的数据 */
    static GameData: GameData = null;

    //**游戏的总开始场景 */
    static StartScene: string = `Start`;

    protected onLoad(): void {
        director.addPersistRootNode(this.node);
        PhysicsSystem2D.instance.debugDrawFlags = 0;
        Banner.Instance.Init();
    }

    start() {
    }
}